home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d1
/
edpath.arc
/
EDPATH.DOC
next >
Wrap
Text File
|
1990-08-28
|
11KB
|
256 lines
EDPATH Version 1.0
DOS Path Editor
─────────────────────────── Notice ──────────────────────────
EDPATH is not for sale. You can copy it and distribute it
freely, however you may not charge any fee. If you find
EDPATH to be a useful utility and would like to see improved
future versions your comments, sugestions, and contribution
of $10.00 would be greatly appreciated.
Alpha Soft
4205 N. Donald
Bethany, OK 73008
(405) 495-9351
(c) Copyright 1990 Alpha Soft
────────────────────────── Purpose ──────────────────────────
EDPATH allows you to quickly insert, append, edit or delete a
directory from the DOS PATH found in the master environment.
NOTE: EDPATH always makes changes to the master environment.
This means that if you shell to DOS from some other program
and use EDPATH to change the path, that change will not
affect the path in the Shell environment. However when you
exit the shell and the program, you will find the change will
show up.
Q: What is a PATH?
A: A PATH is the search path that DOS uses to locate a
command or program if it is not found in the current
drive/directory. The PATH is normally set in your
AUTOEXEC.BAT file.
When you start EDPATH it will separate each of the
drive/directory combinations into a separate line and
display a pick window of your path.
╒══[ EDPATH - Version 1.00 1.0 - (c) 1990 Alpha Soft ]═══╕
│C:\ │
│C:\DOS__________________________________________________▓
│C:\QDOS ░
│C:\TP ░
│C:\TD │
╘══[ <─┘ Change │ Ins │ Del │ End │ ^<─┘ - Save │ Esc ]══╛
The commands are as follows
<─┘ Change - This command will allow you to edit the
currently highlighted selection. When you press
<─┘ or enter you will see the following screen.
╒═══════════════════[ Change Directory in Path ]═══════════════════╕
│ │
│ Directory : [C:\DOS____________________________________________] │
│ │
╘═════════[ <─┘ - Continue Esc - Abort ]═════════╛
Ins - This command will allow you to insert a drive/directory
BEFORE the currently highlighted one. To insert press
the <Ins> key
╒═══════════════════[ Insert Directory in Path ]═══════════════════╕
│ │
│ Directory : [C:\ARC____________________________________________] │
│ │
╘═════════[ <─┘ - Continue Esc - Abort ]═════════╛
After inserting before C:\QDOS the path is now
╒══[ EDPATH - Version 1.00 1.0 - (c) 1990 Alpha Soft ]═══╕
│C:\ │
│C:\DOS ░
│C:\ARC__________________________________________________▓
│C:\QDOS ░
│C:\TP ░
│C:\TD │
╘══[ <─┘ Change │ Ins │ Del │ End │ ^<─┘ - Save │ Esc ]══╛
End - This command will append a drive/directory to the end
of the current path. To append press <End>
╒═══════════════════[ Append Directory in Path ]═══════════════════╕
│ │
│ Directory : [C:\UTILS__________________________________________] │
│ │
╘═════════[ <─┘ - Continue Esc - Abort ]═════════╛
Del - This command will delete the curently highlighted drive
/directory. Use with caution because it will not
verify that you really want to delete it. To delete
press the <Del> key.
╒══[ EDPATH - Version 1.00 1.0 - (c) 1990 Alpha Soft ]═══╕
│C:\ │
│C:\DOS ░
│C:\QDOS_________________________________________________▓
│C:\TP ░
│C:\TD ░
│C:\UTILS │
╘══[ <─┘ Change │ Ins │ Del │ End │ ^<─┘ - Save │ Esc ]══╛
Here we deleted the drive/directory C:\ARC by pressing <Del>
while C:\ARC was highlighted.
^<─┘- This command will save the changes you have made to the
DOS environment. The ^ symbol stands for Ctrl,
therefore to do this command press and hold the Ctrl
key while pressing the <─┘ or enter key.
EDPATH Version 1.00 (c) 1990 Alpha Soft
New path : C:\;C:\DOS;C:\QDOS;C:\TP;C:\TD;C:\UTILS;
After pressing Ctrl-Enter to save and exit, we see that
the path was changed.
Esc - This command will exit without saving the changes you
have made to the DOS path. To exit without saving
press the <Esc> key.
EDPATH Version 1.00 (c) 1990 Alpha Soft
No change to path was made
When we exit with <Esc> no changes are made.
─────────────────────────── Notes ───────────────────────────
Some future revisions may include the following...
Command line switches to allow EDPATH to change the path
without user intervention - from .BAT files for example.
Command line switches to allow EDPATH to edit the Parent
Environment when shelling to DOS from another program.
EDPATH would automatically detect when it is in a shelled DOS
environment and ask user if they want to modify the Parent
environment, Master environment or both.
EDPATH could alter the PATH statement in the AUTOEXEC.BAT
file as well as the DOS environment.
Let us know which of these you would like to see, as well as
any other ideas that you have.
──────────────────── Version 1.01 Update ────────────────────
EDPATH now supports the following command line switches
/? - Command help
/F - Force Mono Attributes
/A D:\PATH - Append D:\PATH to DOS Path
/D D:\PATH - Delete D:\PATH from DOS Path
/M Modify Master Environment path
/P Modify Shell Environment path
/B Modify Master path and save to both
EDPATH now automatically detects when it is being run from a
DOS Shell. When it does, it will ask you which path you
would like to see, the Master path or the Shell path. When
you exit and save, EDPATH will ask you which environment you
want to save the changes to.
Watch for version 1.02...Certain to optionally alter the path
statement in AUTOEXEC.BAT
──────────────────── Version 1.02 Update ────────────────────
Sorry Folks, This version does not alter AUTOEXEC.BAT yet.
It's only purpose is to fix a bug with Version 1.01. The bug
was that if you appended a path with the command line option
/A the program did not add a semicolon to the last directory
in the path before appending.
We also added error checking for path names added. If you
attempt to add an invalid path name, EDPATH will warn you.
The one side effect of this is that should you want to add a
floppy drive A: or B: to the path, you should make sure a
formatted floppy is in the drive.
We have also discovered that some programs save and restore
the shell environment each time you enter and exit the shell.
Thus they overwrite the shell environment path you altered
with EDPATH.
──────────────────── Version 1.03 Update ────────────────────
EDPATH will now optionally alter your AUTOEXEC.BAT or any
other text file that contains a line that begins with PATH=.
For safey's sake EDPATH will not add a line PATH= to a file
that doesn't already have one.
EDPATH will now also check to see if you attempt to append a
path that already exists in the PATH using the /A option.
The reason for this was that if you used EDPATH in a batch
file to append a path and you didn't remove it before running
the batch file again. EDPATH would append it over and over
again.
──────────────────── Version 1.04 Update ────────────────────
This version corrects bugs with saving the path statement to
AUTOEXEC.BAT.
──────────────────── Version 1.05 Update ────────────────────
EDPATH will now expand a path name based on the current
directory. For example, suppose you are in a directory named
C:\UTILS\DOSUTILS
and you type EDPATH /a pathutil
EDPATH will append a directory named
C:\UTILS\DOSUTILS\PATHUTIL
──────────────────── Version 1.06 Update ────────────────────
EDPATH now uses DOS pathname parsing routines to determine
the expanded path name. This means that EDPATH will
correctly interpret pathnames that include ".." and "."